import request from '@/utils/request'

export function getGoodsList(data, pageNum, pageSize) {
  return request({
    url: 'api/admin/goods/getGoodsList',
    method: 'POST',
    data,
    headers: { pageNum: pageNum, pageSize: pageSize }
  })
}
export function alterGoods(data) {
  return request({
    url: 'api/admin/goods/alterGoods',
    method: 'POST',
    data
  })
}
export function getGoodsInfo(data) {
  return request({
    url: 'api/admin/goods/getGoodsInfo',
    method: 'POST',
    data
  })
}
export function addOrUpdateGoods(data) {
  return request({
    url: 'api/admin/goods/addOrUpdateGoods',
    method: 'POST',
    data
  })
}
export function getClassifyGoodsList(data) {
  return request({
    url: 'api/admin/classify_goods/getClassifyGoodsList',
    method: 'POST',
    data
  })
}
